// import com.alibaba.druid.sql.visitor.SQLASTVisitor;
#pragma once
#include "SQLPartitionBy.h"
class SQLASTVisitor;

class SQLPartitionByHash : public SQLPartitionBy
{
public:
  // for aliyun ads
  BOOL_ptr key;
  BOOL_ptr unique;
SHAREDOBJECT(SQLPartitionByHash);
  BOOL_ptr isKey();

  void setKey(BOOL_ptr key);

  BOOL_ptr isUnique();

  void setUnique(BOOL_ptr unique);

  // @Override
  void accept0(SQLASTVisitor_ptr visitor);

  // SQLPartitionByHash* clone() ;
  virtual SQLObject_ptr clone();
  void cloneTo(SQLPartitionByHash_ptr x);
};
